package com.paic.custserv.domain;

import java.io.Serializable;
import java.util.Date;

public class CussWorkOrder implements Serializable {
	
	private static final long serialVersionUID = -7931250377391490992L;
	private Integer idWorkOrder;//主键
	private String serialNumber;//工单流水号
	private Integer typeId;//工单类型ID
	//订单状态：1、接听新建 2、客户申请 3、未分配 4、已分配，待处理 
	//5、申请打回（客服专员打回） 6、处理中 7、已完成（不需要审核） 
	//8、已关闭 9、审核中 10、审核通过（客服经理打回） 11、审核不通过（客服经理打回）'
	private Integer workOrderStatus;
	private String  statusName;//工单状态（显示名）
	private String channelSource;//工单渠道来源：1、WEB 2、PHONE 3、SYSTEM
	private Integer urgentPriority;//紧急程度：10、低 30、一般 50、紧急 70、非常紧急
	private String urgentName;//紧急程度（显示名）
	private String orderNum;//订单编号
	private String customerName;//客户姓名
	private String customerPhone;//客户联系方式
	private String currOperatorUm;//工单当前处理人
	private String issuDesc;//工单问题描述
	private String issuDescWord;//工单问题描述(去标签)
	private String feedbackToCustomer;//工单处理反馈给客户的结果信息
	private String isApprove;//工单是否需要审核：Y 需要 N 不需要
	private String approvorUm;//审核经理UM
	private String isEvaluate;//客户是否已评价：N 未评价 Y、已评价
	private Integer customerEvaluate;//客户评价：1、差评 2、中评 3、好评
	private String creator;//'工单创建人员：客服专员或客户
	private Date createTime;//创建时间
	private String lastUpdatorUm;//最后更新工单人员：客服专员
	private Date lastUpdateTime;//最后更新时间
	private String isDelete;//是否删除 Y 删除 N不删除
	
	private String typeName;//工单类型名
	private Integer parentTypeId;//工单父类型ID
	private String parentTypeName;//工单父类型名
	
	private String parentTypeCode;//工单父类型code
	private String typeCode;//工单类型code

	public String getParentTypeCode() {
		return parentTypeCode;
	}
	public void setParentTypeCode(String parentTypeCode) {
		this.parentTypeCode = parentTypeCode;
	}
	public String getTypeCode() {
		return typeCode;
	}
	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}
	public Integer getParentTypeId() {
		return parentTypeId;
	}
	public void setParentTypeId(Integer parentTypeId) {
		this.parentTypeId = parentTypeId;
	}
	public String getParentTypeName() {
		return parentTypeName;
	}
	public void setParentTypeName(String parentTypeName) {
		this.parentTypeName = parentTypeName;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public Integer getIdWorkOrder() {
		return idWorkOrder;
	}
	public void setIdWorkOrder(Integer idWorkOrder) {
		this.idWorkOrder = idWorkOrder;
	}
	public String getSerialNumber() {
		return serialNumber;
	}
	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}
	public Integer getTypeId() {
		return typeId;
	}
	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}
	public Integer getWorkOrderStatus() {
		return workOrderStatus;
	}
	public void setWorkOrderStatus(Integer workOrderStatus) {
		this.workOrderStatus = workOrderStatus;
	}
	public String getChannelSource() {
		return channelSource;
	}
	public void setChannelSource(String channelSource) {
		this.channelSource = channelSource;
	}
	public Integer getUrgentPriority() {
		return urgentPriority;
	}
	public void setUrgentPriority(Integer urgentPriority) {
		this.urgentPriority = urgentPriority;
	}
	public String getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getCustomerPhone() {
		return customerPhone;
	}
	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}
	public String getCurrOperatorUm() {
		return currOperatorUm;
	}
	public void setCurrOperatorUm(String currOperatorUm) {
		this.currOperatorUm = currOperatorUm;
	}
	public String getIssuDesc() {
		return issuDesc;
	}
	public void setIssuDesc(String issuDesc) {
		this.issuDesc = issuDesc;
	}
	public String getFeedbackToCustomer() {
		return feedbackToCustomer;
	}
	public void setFeedbackToCustomer(String feedbackToCustomer) {
		this.feedbackToCustomer = feedbackToCustomer;
	}
	public String getIsApprove() {
		return isApprove;
	}
	public void setIsApprove(String isApprove) {
		this.isApprove = isApprove;
	}
	public String getApprovorUm() {
		return approvorUm;
	}
	public void setApprovorUm(String approvorUm) {
		this.approvorUm = approvorUm;
	}
	public String getIsEvaluate() {
		return isEvaluate;
	}
	public void setIsEvaluate(String isEvaluate) {
		this.isEvaluate = isEvaluate;
	}
	public Integer getCustomerEvaluate() {
		return customerEvaluate;
	}
	public void setCustomerEvaluate(Integer customerEvaluate) {
		this.customerEvaluate = customerEvaluate;
	}
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getLastUpdatorUm() {
		return lastUpdatorUm;
	}
	public void setLastUpdatorUm(String lastUpdatorUm) {
		this.lastUpdatorUm = lastUpdatorUm;
	}
	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}
	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	public String getIsDelete() {
		return isDelete;
	}
	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}
	
	public String getIssuDescWord() {
		return issuDesc.replaceAll("\\<.*?>", "");
	}
	public void setIssuDescWord(String issuDescWord) {
		this.issuDescWord = issuDescWord;
	}		
	public String getStatusName() {
		switch(workOrderStatus){
		  case 1:{return "接听新建";}
		  case 2:{return "客户申请";}
		  case 3:{return "未分配";}
		  case 4:{return "待处理";}
		  case 5:{return "申请打回";}
		  case 6:{return "处理中";}
		  case 7:{return "已完成";}
		  case 8:{return "已关闭";}
		  case 9:{return "审核中";}
		  case 10:{return "审核通过";}
		  default:{return "审核不通过";}
		}			
	}
	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}		
	public String getUrgentName() {
		switch(urgentPriority){
		  case 10:{return "低";}
		  case 30:{return "一般";}
		  case 50:{return "紧急";}
		  default:{return "非常紧急";}
		}
	}
	public void setUrgentName(String urgentName) {
		this.urgentName = urgentName;
	}
	@Override
	public String toString() {
		return "CussWorkOrderPO [idWorkOrder=" + idWorkOrder
				+ ", serialNumber=" + serialNumber + ", typeId=" + typeId
				+ ", workOrderStatus=" + workOrderStatus + ", channelSource="
				+ channelSource + ", urgentPriority=" + urgentPriority
				+ ", orderNum=" + orderNum + ", customerName=" + customerName
				+ ", customerPhone=" + customerPhone + ", currOperatorUm="
				+ currOperatorUm + ", issuDesc=" + issuDesc
				+ ", feedbackToCustomer=" + feedbackToCustomer + ", isApprove="
				+ isApprove + ", approvorUm=" + approvorUm + ", isEvaluate="
				+ isEvaluate + ", customerEvaluate=" + customerEvaluate
				+ ", creator=" + creator + ", createTime=" + createTime
				+ ", lastUpdatorUm=" + lastUpdatorUm + ", lastUpdateTime="
				+ lastUpdateTime + ", isDelete=" + isDelete + "]";
	}

}
